package cn.itcast.com;

public class Demo1 {
    public static void main(String[] args) {
        //返回参数打的绝对值；
        int abs = Math.abs(-10);
        System.out.println(abs);
        //向上取整
        double ceil = Math.ceil(10.1);
        System.out.println(ceil);
        //向下取整
        double floor = Math.floor(10.9);
        System.out.println(floor);
        //四舍五入
        long round = Math.round(10.6);
        System.out.println(round);

    }
}
